package com.bishe.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bishe.model.LoginModel;
import com.bishe.pojo.Student;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bishe.query.StudentQuery;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lwx
 * @since 2022-04-14
 */
public interface StudentService extends IService<Student> {

    /**
     * 学生列表
     * @param query
     */
    IPage toPage(StudentQuery query);

    /**
     * 添加或修改
     * @param student
     */
    void addOrUpdate(Student student);

    /**
     * 登陆
     * @param loginModel
     * @return
     */
    LoginModel login(LoginModel loginModel);
}
